#include<bits/stdc++.h>
using namespace std;
int read(){
    int f=1,x=0;
    char c;
    while (c=getchar()){
        if (c>='0'&&c<='9') x=x*10+c-'0';
        else if (c=='-') f=-1;
        else break;
    }
    return x*f;
}
int n,ans;
int a[100005];
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    n=read();
    ans=n;
    for (int i=1;i<=n;i++)
        a[i]=read();
    sort(a+1,a+1+n);
    int j=1;
    for (int i=i;i<=n;i++){
        while(a[j]<a[i]){
            j++;
            i++;
            ans--;
        }
    }
    cout<<ans;
    return 0;
}
